:root {
    --color-hat-shadow: #9f8262;
    --color-hat: #d5ba92;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #5d3800;

}

.container{
    display: flex;
    justify-content: center;
    align-items: center; 
    position: relative;
}

.face {
    position: absolute;
    /* background: #ffcd00; */
    background: #ecdbca;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    border: 0px solid black;
    box-shadow: 0px -18px 2px 3px var(--color-hat);
}

.face::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 70px;
    /* background: #b57700; */
    background: #b46c78;
    top: 180px;
    border-bottom-left-radius: 70px;
    border-bottom-right-radius: 60px;
    transition: 0.5s;
}

.face:hover::before {
    top: 210px;
    width: 150px;
    height: 20px;
    background: #b46c78;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}

.eyes {
    position: relative;
    top: -40px;
    display: flex;
}

.eyes .eye {
    position: relative;
    width: 80px;
    display: block;
    height: 80px;
    background: #fff;
    margin: 0 15px;
    border-radius: 50%;
}

.eyes .eye::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    top: 50%;
    left: 25px;
    transform: translate(-50%, -50%);
}

.hat-container {
    width: 500px;
    height: 250px;
    position: relative;
}

.hat {
    position: absolute;
    width: 250px;
    height: 250px;
    left: 50%;
    border-radius: 100%;
    top: -30%;
    background: var(--color-hat);
    transform: translatex(-50%) rotate(-2deg);
    box-shadow: inset -20px -18px 0 20px var(--color-hat-shadow);

}

.hat::after {
    content: '';
    position: absolute;
    height: 100px;
    width: 238px;
    background-color: #ba2a34;
    bottom: 45%;
    left: 50.2%;
    transform: translate(-50%) rotate(2deg);
    border-radius: 100% 100% 0 0;
}

.hat-peak {
    position: relative;
    width: 500px;
    height: 250px;
    border: 3px solid #472a00;
    border-radius: 50%;
    background: var(--color-hat-shadow);
    box-shadow: inset 0 20px 0 5px var(--color-hat);
}